<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<h1><%="学生信息"%>
</h1>
<form action="${pageContext.request.contextPath}/com/example" method="post"
      enctype="multipart/form-data">
    输入姓名：<input type="text" name="name"> <br/>
    输入学号：<input type="text" name="num"> <br/>
    选择文件：<input type="file" name="file"> <br/>
    <input type="submit" value="文件上传">
</form>
</body>
</html>